// 自动生成模板CasCases
package cases

import (
	"time"

	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// casCases表 结构体  CasCases
type CasCases struct {
	global.GVA_MODEL
	TouchAt   *time.Time `json:"touchAt" form:"touchAt" gorm:"column:touch_at;comment:;" binding:"required"` //接警时间
	CaseId    *int       `json:"caseId" form:"caseId" gorm:"column:case_id;comment:cas_cases.id;size:19;"`
	CaseNo    *string    `json:"caseNo" form:"caseNo" gorm:"column:case_no;comment:案件编号;size:191;"`                               //案件编号
	CaseName  *string    `json:"caseName" form:"caseName" gorm:"column:case_name;comment:案件名;size:191;" binding:"required"`       //案件名
	TownCode  *string    `json:"townCode" form:"townCode" gorm:"column:town_code;comment:发案乡镇;size:25;" binding:"required"`       //发案乡镇
	FOwnerId  *int       `json:"fOwnerId" form:"fOwnerId" gorm:"column:f_owner_id;comment:主办人;size:19;" binding:"required"`       //主办人
	Amount    *int       `json:"amount" form:"amount" gorm:"column:amount;comment:金额;size:19;" binding:"required"`                //金额
	CaseState *string    `json:"caseState" form:"caseState" gorm:"column:case_state;comment:案件状态 0接警 1受案 2立案;size:10;"`           //案件状态
	FCaseType *string    `json:"fCaseType" form:"fCaseType" gorm:"column:f_case_type;comment:案件类型一;size:120;" binding:"required"` //案件类别
	SCaseType *string    `json:"sCaseType" form:"sCaseType" gorm:"column:s_case_type;comment:案件类型二;size:120;" binding:"required"` //副案件类别
	SOwnerId  *int       `json:"sOwnerId" form:"sOwnerId" gorm:"column:s_owner_id;comment:协办人;size:19;"`                          //协办人
	State     *int       `json:"state" form:"state" gorm:"column:state;comment:录入状态 0待审核 1正常;size:10;"`                           //录入状态
	Content   *string    `json:"content" form:"content" gorm:"column:content;comment:案件内容;type:text;" binding:"required"`         //简要案情
	Address   *string    `json:"address" form:"address" gorm:"column:address;comment:发案地址;size:191;" binding:"required"`          //发案地址
	Subdivide *string    `json:"subdivide" form:"subdivide" gorm:"column:subdivide;comment:;" binding:"required"`                 //类型
}

// TableName casCases表 CasCases自定义表名 cas_cases
func (CasCases) TableName() string {
	return "cas_cases"
}
